package com.nari.customer.bo;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class UserComplaint implements Serializable {

	private static final long serialVersionUID = 6798626953767257776L;
	private String complaintId;
	private String userId;
	private String userComplaint;
	private String complaintTitle;
	private String sysReply;
	private Date complaintTime;
	private Date replyTime;
	private String replyNo;
	private String communityId;
	private String projectId;
	private String buildingId;
	private String loginName;
	private String replyStatus;
	private String complaintTimeFormat;
	private String replyTimeTimeFormat;
	private String replyName;

	public String getReplyNo() {
		return replyNo;
	}

	public void setReplyNo(String replyNo) {
		this.replyNo = replyNo;
	}

	public String getComplaintId() {
		return complaintId;
	}

	public void setComplaintId(String complaintId) {
		this.complaintId = complaintId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserComplaint() {
		return userComplaint;
	}

	public void setUserComplaint(String userComplaint) {
		this.userComplaint = userComplaint;
	}

	public String getSysReply() {
		return sysReply;
	}

	public void setSysReply(String sysReply) {
		this.sysReply = sysReply;
	}

	public Date getComplaintTime() {
		return complaintTime;
	}

	public void setComplaintTime(Date complaintTime) {
		this.complaintTime = complaintTime;
	}

	public Date getReplyTime() {
		return replyTime;
	}

	public void setReplyTime(Date replyTime) {
		this.replyTime = replyTime;
	}

	public String getCommunityId() {
		return communityId;
	}

	public void setCommunityId(String communityId) {
		this.communityId = communityId;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getBuildingId() {
		return buildingId;
	}

	public void setBuildingId(String buildingId) {
		this.buildingId = buildingId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getReplyStatus() {
		if (replyNo != null && !"".equals(replyNo.trim())) {
			replyStatus = "已回复";
		} else {
			replyStatus = "未回复";
		}
		return replyStatus;
	}

	public String getComplaintTitle() {
		return complaintTitle;
	}

	public void setComplaintTitle(String complaintTitle) {
		this.complaintTitle = complaintTitle;
	}

	public String getComplaintTimeFormat() {
		SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		complaintTimeFormat = sf.format(complaintTime);
		return complaintTimeFormat;
	}

	public String getReplyTimeTimeFormat() {
		SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		replyTimeTimeFormat = sf.format(replyTime);
		return replyTimeTimeFormat;
	}

	public String getReplyName() {
		return replyName;
	}

	public void setReplyName(String replyName) {
		this.replyName = replyName;
	}
}
